"""
1.网络工具  
2.串口
3.蓝牙助手
4.物联网
5.小车上位机控制
"""
import typing
from PyQt5 import QtCore
from PyQt5.QtWidgets import QApplication,QWidget,QPushButton,QMainWindow
import sys
from ui.Ui_main_window import Ui_MainWindow
from net_widget import MyWidget as NetWidget
from SerialAssist import Serial_MyWidget
 
class MyWidget(QMainWindow):
    def __init__(self):
        super().__init__()
        self.ui=Ui_MainWindow()#ui创建对象
        self.ui.setupUi(self)
        self.init_ui()
    def init_ui(self):
        self.ui.tabWidget.addTab(NetWidget(self),"网络助手")
        self.ui.tabWidget.addTab(Serial_MyWidget(self),"串口助手")
        self.ui.tabWidget.setCurrentIndex(1)#设置当前显示的tab页
        self.resize(1500, 1200)  # 初始大小：宽800，高600



if __name__=="__main__":
    app= QApplication(sys.argv)
    w=MyWidget()
    w.show()    
    sys.exit(app.exec_())